package game;


import core.Colour;
import core.Game;
import core.Texture2D;

public class MainGame extends Game {
   
   private Texture2D oneByOneSquare;
   public MainGame(boolean vsync) {
      super(vsync);
   }
   public MainGame(String name, int width, int height, boolean resizable) {
      super(name,width,height,resizable);
      setFPS(60);
   }

   @Override
   public void init() {
      oneByOneSquare = new Texture2D("resources/gfx/1x1.png");
   }
 
   @Override
   public void update(long deltaTime) {
   }
   
   
   @Override
   public void render() {
      super.render();
      spriteBatch.begin();
      spriteBatch.draw(oneByOneSquare, 0, 0, 100, 100, new Colour(1, 0, 0, 1f));
      spriteBatch.end();
   }//End method render
   
   public static void main(String[] args){
      new MainGame("", 800, 600, true).run();
   }
}
